home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 2006 April / DPPRO0406DVD.ISO / Essentials / Programming / Eclipse SDK / eclipse-SDK-3.1.1-win32.exe / eclipse / plugins / org.eclipse.help.webapp_3.1.0 / basic / tabs.jsp < prev    next >
Encoding:
Text File  |  2005-09-29  |  3.0 KB  |  101 lines

  1. <%--
  2.  Copyright (c) 2000, 2004 IBM Corporation and others.
  3.  All rights reserved. This program and the accompanying materials 
  4.  are made available under the terms of the Eclipse Public License v1.0
  5.  which accompanies this distribution, and is available at
  6.  http://www.eclipse.org/legal/epl-v10.html
  7.  
  8.  Contributors:
  9.      IBM Corporation - initial API and implementation
  10. --%>
  11. <%@ include file="header.jsp"%>
  12. <% 
  13.     LayoutData data = new LayoutData(application,request, response);
  14.     WebappPreferences prefs = data.getPrefs();
  15.     View[] views = data.getViews();
  16. %>
  17.  
  18. <html>
  19. <head>
  20. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  21.  
  22. <title><%=ServletResources.getString("Tabs", request)%></title>
  23.     
  24. <base target="ViewsFrame">
  25. <SCRIPT TYPE="text/javascript">
  26. <!--
  27. function resynch()
  28. {
  29.         var topic = parent.HelpFrame.ContentViewFrame.window.location.href;
  30.         // remove the query, if any
  31.         var i = topic.indexOf('?');
  32.         if (i != -1)
  33.             topic = topic.substring(0, i);
  34.         // remove the fragment, if any
  35.         var i = topic.indexOf('#');
  36.         if (i != -1)
  37.             topic = topic.substring(0, i);
  38.         parent.HelpFrame.ViewsFrame.location="view.jsp?view=toc&topic="+topic;
  39. }
  40. //-->
  41. </SCRIPT>
  42. </head>
  43.    
  44. <body dir="<%=direction%>" bgcolor="<%=prefs.getBasicToolbarBackground()%>" link="#0000FF" vlink="#0000FF" alink="#0000FF">
  45.     <table align="<%=isRTL?"right":"left"%>" border="0" cellpadding="0" cellspacing="0">
  46.     <tr>
  47.  
  48. <%
  49.     for (int i=0; i<views.length; i++) 
  50.     {
  51.         // do not show booksmarks view
  52.         if("bookmarks".equals(views[i].getName())){
  53.             continue;
  54.         }
  55.         
  56.         // search view is not called "advanced view"
  57.         String title = ServletResources.getString(views[i].getName(), request);
  58.         if("search".equals(views[i].getName())){
  59.             title=ServletResources.getString("Search", request);
  60.         }
  61.         
  62.         String viewHref="view.jsp?view="+views[i].getName();
  63.         // always pass query string to "links view"
  64.         if("links".equals(views[i].getName())){
  65.             viewHref=viewHref+(request.getQueryString()!=null?"&"+request.getQueryString():"");
  66.         }
  67.         
  68. %>
  69.         <td nowrap>
  70.         <b>
  71.         <a  href='<%=viewHref%>' > 
  72.              <img alt="<%=title%>" 
  73.                   title="<%=title%>" 
  74.                   src="<%=views[i].getOnImage()%>" border=0>
  75.              
  76.          <%=title%>
  77.          </a>
  78.           
  79.         </b>
  80.          </td>
  81. <%
  82.     }
  83. %>
  84.     </tr>
  85.     </table>
  86.  
  87. <SCRIPT TYPE="text/javascript">
  88. <!--
  89. document.write("<table align=\"<%=isRTL?"left":"right"%>\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"><tr><td nowrap><b><a  href='javascript:parent.parent.TabsFrame.resynch();' >"); 
  90. document.write("<img alt=\"\" title=\"<%=ServletResources.getString("Synch", request)%>\" src=\"images/e_synch_toc_nav.gif\" border=0> ");
  91. document.write("<%=ServletResources.getString("shortSynch", request)%></a> </b></td></tr></table>");
  92. //-->
  93. </SCRIPT>
  94.  
  95.     <iframe name="liveHelpFrame" title="<%=ServletResources.getString("ignore", "liveHelpFrame", request)%>" frameborder="no" width="0" height="0" scrolling="no">
  96.     <layer name="liveHelpFrame" frameborder="no" width="0" height="0" scrolling="no"></layer>
  97.     </iframe>
  98. </body>
  99. </html>
  100.  
  101.